package com.freedom.start.utils;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * id生成器，生成各种id
 * @Author: zhenggang.liu
 * @Date: 2020/1/2 17:02
 */
@Component
public class IDGenerator {

    /**
     * 随机的uuid
     * @return
     */
    public static String uuid(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }
}
